import request from '@/utils/request';

// 查询代采购额度变动记录列表
export function listChange(query) {
	return request({
		url: '/rechargeLimitChange/list',
		method: 'post',
		data: query,
	});
}

// 查询代采购额度变动记录详细
export function getChange(id) {
	return request({
		url: '/rechargeLimitChange/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增代采购额度变动记录
export function addChange(data) {
	return request({
		url: '/rechargeLimitChange/add',
		method: 'post',
		data: data,
	});
}

// 修改代采购额度变动记录
export function updateChange(data) {
	return request({
		url: '/rechargeLimitChange/edit',
		method: 'post',
		data: data,
	});
}

// 删除代采购额度变动记录
export function delChange(id) {
	return request({
		url: '/rechargeLimitChange/remove',
		method: 'post',
		data: id,
	});
}

// 导出代采购额度变动记录
export function exportChange(query) {
	return request({
		url: '/rechargeLimitChange/export',
		method: 'post',
		params: query,
	});
}

// 获取代采购额度设置
export function rechargeLimitSetting(data) {
	return request({
		url: '/rechargeLimit/rechargeLimitSetting',
		method: 'post',
		data,
	});
}

export function updateRechargeLimitSetting(data) {
	return request({
		url: '/rechargeLimit/updateRechargeLimitSetting',
		method: 'post',
		data,
	});
}
